<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RoleAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.RoleAddEdit" %>
<%@ Register Src="CmsExtPropertiesForm.ascx" TagName="CmsExtPropertiesForm" TagPrefix="uc1" %>
<table>
<tr>
    <th colspan="2" align="center">
        <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
    </th>        
</tr>
<tr>
    <td align="left"><br />
        <asp:Label ID="lblErrorSite" runat="server" ForeColor="red" Text=""></asp:Label></td>
</tr>
<tr>
    <td>
    <fieldset id="fsMain" runat="server">
    <legend><asp:Label ID="lbMain"  runat="server"  Text="Main Properties"></asp:Label> </legend>
        <table cellpadding="2" cellspacing="2">
            <tr>
                <td>
                    Role Class 
                </td>
                <td align="left">
                     <asp:DropDownList ID="ddlClass" runat="server"  Enabled="False" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged" AutoPostBack="true" DataSourceID="ODSClassPage" DataTextField="Name" DataValueField="ID" >
                </asp:DropDownList>
                <asp:ObjectDataSource ID="ODSClassPage" runat="server" SelectMethod="GetClassListByClassTypeID"  TypeName="IGlobalist.Cms.Bll.ClassController">
                    <SelectParameters>
                            <asp:Parameter DefaultValue="1" Name="classTypeID" Type="Int16" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbName" runat="server" Text="Name"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList runat="server" ID="ddlRoleName" DataSourceID="xmlRole" DataTextField="DisplayName" DataValueField="Name" /><asp:XmlDataSource
                        ID="xmlRole" runat="server" DataFile="~/Admin/XML/Roles.xml"></asp:XmlDataSource>
                    <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Label ID="lbDescription" runat="server" Text="Description"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="tbDescription" runat="server" Rows="4" TextMode="MultiLine" Height="100px" ></asp:TextBox>
                </td>
            </tr>            
       </table>   
    </fieldset> 
    </td>
</tr>
    <tr>
        <td>
            <fieldset id="fsExt" runat="server" visible="false">
                <legend><asp:Label ID="lbExt"  runat="server"  Text="Ext Properties"></asp:Label> </legend>               
                <uc1:CmsExtPropertiesForm ID="ucCmsExtPropertiesForm" runat="server" />
                
            
            </fieldset> 
        </td>
    </tr>
</table> 



